﻿using System;

namespace NavFx
{
	/// <summary>
	/// Thrown when a navigation request specifies a page that has not been registered with the Navigator
	/// </summary>
	public class PageNotRegisteredException: Exception
	{
		/// <summary>
		/// Default constructor
		/// </summary>
		public PageNotRegisteredException()
			: base("The requested page has not been registered with the Navigator, did you forget to register a page.")
		{
			//nothing else to do
		}

		/// <summary>
		/// Constructor overload supporting a custom error message
		/// </summary>
		public PageNotRegisteredException(string message)
			: base(message)
		{
			//nothing else to do
		}

		/// <summary>
		/// Constructor overload supporting a custom error message and inner exception
		/// </summary>
		public PageNotRegisteredException(string message, Exception innerException)
			: base(message, innerException)
		{
			//nothing else to do
		}
	}
}
